package com.weight.common.login.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.weight.common.login.DAO.RoleInfoMapper;
import com.weight.common.login.PO.RoleInfo;
import com.weight.common.login.service.RoleInfoService;
  
@Service()
@Transactional
public class RoleInfoServiceImpl implements RoleInfoService {
	@Autowired
	RoleInfoMapper roleInfoMapper;

	@Override
	public List<RoleInfo> findRoleInfoByT(RoleInfo roleInfo) {
		
		return roleInfoMapper.findRoleInfoByT(roleInfo);
	}

	@Override
	
	public int deleteByRoleInfoId(Map map) {
		
		return roleInfoMapper.deleteByRoleInfoId(map);
	}

	@Override
	public int insertRoleInfo(RoleInfo roleInfo) {
		
		return roleInfoMapper.insertRoleInfo(roleInfo);
	}

	@Override
	public int updateRoleInfo(RoleInfo roleInfo) {
		
		return roleInfoMapper.updateRoleInfo(roleInfo);
	}
	@Override
	public List<RoleInfo> findRoleInfoByUserInfoId(Map map){
		
		return roleInfoMapper.findRoleInfoByUserInfoId(map);
	}

}
